Objects Reference

anim_mesh::set_key

Prototype

void set_key(int key)
void set_key(float key)

Parameters

Parameter Type Description
key int integer key frame (0 - numframes)
key float float key frame (0 - 1.0)

Return Value

None

Remarks

These functions are used to set the current animation key. The integer version of the function is faster, but can only set the mesh to one of the predefined keyframes. The float version, linearly interpolates the two closest key frames to generate a smooth animation between keyframes.